/**
* @author maze | guavestudios.com
* @license MIT License see LICENSE.TXT
* @version 0.1
*/
package com.guavestudios.fcon.commands {
	import com.guavestudios.fcon.api.*;
	public class TransparentCommand implements INamedCommand{
		
		public function TransparentCommand() {
			
			
		}
		public function execute(args:Array):void
		{
			if (args.length<2) 
			{
				IControlableConsole(args[0]).outputText("Usage: "+getCommandName()+" 30-100");
				return;
			}
			var n:Number=parseFloat(args[1])/100;
			if (n>.3)
			{
				IControlableConsole(args[0]).alpha=n;
			}
			
		}
		public function getCommandName():String
		{
			return "transparent";
		}
		
	}
	
}
